{{ define "main" }}
    {{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
    {{ .Scratch.Set "pagenumber" .Paginator.PageNumber }}
    {{ if eq .Paginator.PageNumber 1 }}
        {{- partial "about.html" . -}}
    {{ else }}
        <h3 class="inline current-page">Page {{.Paginator.PageNumber}}</h3>
    {{ end }}
    <hr>

    {{- partial "listcontent.html" . -}}
    {{- partial "pagination.html" . -}}
{{ end }}